package com.xuan.task.Mapper;

import com.xuan.task.domain.UserHomeworkExampaperHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserHomeworkExampaperHistoryMapper {

    //插入用户作业和练习历史数据
    @Insert( "REPLACE  into user_homework_exampaper_history (user_id,homework_id,homework_name,homework_exampaper_view_list,is_complete," +
            " complete_time,create_time,type,lastest_time)" +
            "  values (#{userId},#{homeworkId},#{homeworkName},#{homeworkExampaperViewList},#{isComplete},#{completeTime},#{createTime}," +
            "  #{type},#{lastestTime})" )
    void insertUserHomeworkExampaperHistory(UserHomeworkExampaperHistory userHomeworkExampaperHistory);


}
